Learn R Programming

ruta (version 1.2.0)

[.ruta_network: Access subnetworks of a network

Description

Access subnetworks of a network

Usage

# S3 method for ruta_network
[(net, index)

Value

A "ruta_network" object containing the specified layers.

Arguments

net

A "ruta_network" object

index

An integer vector of indices of layers to be extracted

Examples

Run this code
(input() + dense(30))[2]
long <- input() + dense(1000) + dense(100) + dense(1000) + output()
short <- long[c(1, 3, 5)]

Run the code above in your browser using DataLab